<template>
  <div id="app">
    <transition :name="transitionName">
      <router-view v-wechat-title="$route.meta.title"></router-view>
    </transition>
  </div>
</template>

<script>
export default {
  name: 'App',
  data(){
    return{
      transitionName:'slideleft'
    }
  },
  watch:{
    $route(){
      if(this.$router.isleft){
        this.transitionName = 'slideleft'
      }
      if(this.$router.isright){
        this.transitionName = 'slideright'
      }
    }
  }
}
</script>

<style>
  @import './assets/css/material-icons.css';
  @import 'http://cdn.bootcss.com/material-design-icons/3.0.1/iconfont/material-icons.css';
  @import "./assets/css/base.css";

</style>
